package org.grayrabbit.cloud.core.module;

import org.grayrabbit.cloud.core.biz.ServerUtility;
import org.grayrabbit.cloud.core.rpc.Argument;
import org.grayrabbit.cloud.core.rpc.ChannelFactory;
import org.grayrabbit.cloud.core.rpc.Result;

public class ProxyChannel extends ChannelModule<Result, Argument> {
	private String remoteAddr;
	ProxyChannel(String remoteAddr){
		this.remoteAddr = remoteAddr;
	}
	@Override
	protected String getChannelUrl() {
		return remoteAddr;
	}

	@Override
	protected ChannelFactory<Result> getChannelFactory() {
		return ServerUtility.getChannelFactory();
	}


}
